package com.kimoge.spring6.validation.methodtwo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;

/**
 * @author kimoge
 * @date 2025/8/30
 * @description
 */
@Configuration
@ComponentScan(value = "com.kimoge.spring6.validation.methodtwo")
public class ValidatorConfig {
    @Bean
    public LocalValidatorFactoryBean getValidator() {
        return new LocalValidatorFactoryBean();
    }
}
